<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="${pageContext.request.contextPath }/publicStyle/jquery-ui.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/publicStyle/jquery-1.4.4.min.js"></script>
	<link rel="stylesheet" type="text/css" href="publicStyle/css/bootstrap.css">
	 <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/publicStyle/jquery-ui.min.css">
<title>Insert title here</title>
</head>
<body>
<center>
<h1>课程信息</h1>
<table class="table table-striped table-bordered table-hover table-condensed">

<tr><td>课程编号</td><td>课程名</td><td>任课教师编号</td><td>修改</td><td>删除</td></tr>
	<c:forEach begin="0" end="${fn:length(listcur)-1}" step="1" var="i">
	
		<tr><td>${listcur[i].cid}</td><td>${listcur[i].cname}</td><td><c:if test="${listcur[i].ctid==null}">暂无</c:if><c:if test="${listcur[i].ctid!=null}">${listcur[i].ctid}</c:if></td><td><a href="${pageContext.request.contextPath }/updatecurr?cid=${listcur[i].cid}&cname=${listcur[i].cname}&ctid=${listcur[i].ctid}"  >修改</a></td><td><a href="${pageContext.request.contextPath }/deletecurriculumbyid?cid=${listcur[i].cid}">删除</a></td></tr>
		
	</c:forEach>
	</table>
	<a href="${pageContext.request.contextPath }/viewcurri?currPage=1">首页</a>	 <a href="${pageContext.request.contextPath }/viewcurri?currPage=${pb.currPage-1}">上一页</a> <a href="${pageContext.request.contextPath }/viewcurri?currPage=${pb.currPage+1}">下一页</a> <a href="${pageContext.request.contextPath }/viewcurri?currPage=${pb.totalPage}">尾页</a>&nbsp;&nbsp;&nbsp;<a>当前第${pb.currPage }页/总${pb.totalPage}页</a>
	</center>
	
</body>
</html>